package com.fowo.api.model.payable;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import javax.validation.constraints.*;
import lombok.Data;

/** 应付单商品列表 导入导出辅助模型 */
@Data
public class PayableProductExcelPo {

  @ExcelProperty(value = "所属应付单")
  private String parentPayableSupplierName;

  @ExcelIgnore
  @ExcelProperty(value = "所属应付单")
  private Long parentPayable;

  @NotNull(message = "商品不能为空")
  @ExcelProperty(value = "*商品")
  private String productIdName;

  @ExcelIgnore
  @ExcelProperty(value = "*商品")
  private Long productId;

  @Size(max = 500, message = "商品名称长度不能超过20")
  @ExcelProperty(value = "商品名称")
  private String name;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ExcelProperty(value = "SKU")
  private String sku;

  @Size(max = 50, message = "计价数量长度不能超过20")
  @ExcelProperty(value = "计价数量")
  private Integer num;

  @Size(max = 50, message = "价格长度不能超过20")
  @ExcelProperty(value = "价格")
  private java.math.BigDecimal price;

  @ExcelProperty(value = "主材料单价")
  private java.math.BigDecimal mainUnitPrice;

  @ExcelProperty(value = "主材料克重")
  private java.math.BigDecimal gramWeight;

  @ExcelProperty(value = "工费")
  private java.math.BigDecimal laborCosts;

  @ExcelProperty(value = "含税价格")
  private java.math.BigDecimal priceTax;

  @ExcelProperty(value = "小计")
  private java.math.BigDecimal subtotal;
}
